﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Admin
{
    public partial class coupon_list : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["id"] == null)
            {
                ObjectDataSource1.SelectParameters["corpID"].DefaultValue = "0";
                lblCorpName.Text = "所有";
                aAdd.Style.Value = "display:none";
            }
            else
            {
                lblCorpName.Text = Request["title"].ToString();
                aAdd.HRef = string.Format("coupon_detail.aspx?id={0}&title={1}", Request["id"].ToString(),Request["title"].ToString());
            }

        }
    }
}
